package com.codingman.springjdbcdemo1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo3 {
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");

		EmployeeDao3 dao3 = (EmployeeDao3) ctx.getBean("dao3");
		dao3.save(new Employee(106, "Michael", 16000));
		
		EmployeeDao4 dao4 = (EmployeeDao4) ctx.getBean("dao4");
		dao4.save(new Employee(107, "Smith", 17000));
	}
}